import authRequest from "../supports/requests/authRequest";

export function getCarts() {
  return authRequest('carts')
}

export function createCart(data) {
  return authRequest('cart', { method: 'post', data: data })
}

export function getCartsCount() {
  return authRequest('carts/count')
}

export function deleteCart(id) {
  return authRequest('carts/' + id, { method: 'delete' })
}

export function updateCart(data) {
  return authRequest('carts/' + data.id, { method: 'put', data: data })
}
